package com.electronsys.dept.action;

import java.util.List;

import com.electronsys.dept.service.IDeptService;
import com.electronsys.pojo.Department;
import com.electronsys.pojo.Employee;
import com.opensymphony.xwork2.ActionSupport;

public class DeptMessAction extends ActionSupport{
	private Integer deptId;
	private IDeptService deptService;
	private List<Department> dlist;
	private List<Employee> elist;
	public String execute(){
		System.out.println("dept mess...");
		dlist = deptService.deptList(deptId);
		elist = deptService.empList();
		
		return SUCCESS;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public IDeptService getDeptService() {
		return deptService;
	}
	public void setDeptService(IDeptService deptService) {
		this.deptService = deptService;
	}
	public List<Department> getDlist() {
		return dlist;
	}
	public void setDlist(List<Department> dlist) {
		this.dlist = dlist;
	}
	public List<Employee> getElist() {
		return elist;
	}
	public void setElist(List<Employee> elist) {
		this.elist = elist;
	}
	
}
